package org.easymis.crm.modules.crm.service.impl;

import java.util.HashMap;
import java.util.List;

import org.easymis.crm.modules.crm.entitys.mybatis.dto.CrmLeads;
import org.easymis.crm.modules.crm.entitys.mybatis.mapper.CrmLeadsMapper;
import org.easymis.crm.modules.crm.service.CrmLeadsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class CrmLeadsServiceImpl implements CrmLeadsService {
	@Autowired
	private CrmLeadsMapper mapper;
	@Override
	public List<CrmLeads> getList(CrmLeads bean) {
		HashMap<String, Object> params = new HashMap<String, Object>();
		return mapper.getList(params);
	}

	@Override
	public void save(CrmLeads bean) {
		// TODO Auto-generated method stub
		mapper.save(bean);
	}

	@Override
	public void update(CrmLeads bean) {
		// TODO Auto-generated method stub
		mapper.update(bean);
	}

	@Override
	public void delete(String id) {
		// TODO Auto-generated method stub
		mapper.delete(id);
	}

	@Override
	public CrmLeads findById(String id) {
		// TODO Auto-generated method stub
		return mapper.findById(id);
	}

}
